import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/home/home.vue'
import indexView from '@/views/home/index.vue'
import calView from '@/views/home/cal.vue'
import cartView from '@/views/home/cart.vue'
import myView from '@/views/home/my.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home', component: HomeView, children: [
        { path: 'index', component: indexView },
        { path: 'cal', component: calView },
        { path: 'cart', component: cartView },
        { path: 'my', component: myView },
      ]
    },
  ],
})

export default router
